package com.rui.study.algorithm.L_深入理解JVM_类加载的时机_不会引发_父类静态字段间接访问.server;

import sun.reflect.Reflection;

/**
 * @program: study
 * @description:
 * @author: Yaowr
 * @create: 2019-03-05 10:31
 **/
public class Driver {



    static {
        System.out.println(Driver.class.getCanonicalName() +" -- 初始化..类加载器[" + Driver.class.getClassLoader().getClass().getSimpleName() + "]");
    }

    public Driver() {
        System.out.println("我在Driver构造器中，Caller Class Loader is ：" + Reflection.getCallerClass());
        new Car();
    }

    public Driver(Car car) {
        new Car();
    }
}
